﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="EmailToFriend.aspx.cs" Inherits="EmailToFriend" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Email to Friend</title>
    <link rel="stylesheet" href="/Contents/bootstrap.css">
    <style>
        html
        {
            overflow-y: auto;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Panel runat="server" ID="ThankYouPanel" Visible="false">
            <div style="text-align: left;" class="alert-message warning">
                <p>
                    Thank you, your feedback has been received by us.</p>
            </div>
            <div class="actions" style="margin-top: 0;">
                <input type="button" value="Close" class="btn" onclick="javascript:parent.hideReferToFriendModal();" />
            </div>
        </asp:Panel>
        <asp:Panel runat="server" ID="Panel1">
            <div class="clearfix">
                <label for="txtName">
                    Your Name:</label>
                <div class="input">
                    <asp:TextBox runat="server" ID="txtName" MaxLength="150" />
                    <asp:RequiredFieldValidator ClientIDMode="Static" ControlToValidate="txtName" ID="RequiredFieldValidator1"
                        runat="server" ErrorMessage="*" Text="*" Display="Dynamic"></asp:RequiredFieldValidator>
                </div>
            </div>
            <div class="clearfix">
                <label for="txtEmail">
                    Your Email</label>
                <div class="input">
                    <asp:TextBox runat="server" ID="txtEmail" MaxLength="150" />
                    <asp:RequiredFieldValidator ClientIDMode="Static" ControlToValidate="txtEmail" ID="RequiredFieldValidator2"
                        runat="server" ErrorMessage="*" Text="*" Display="Dynamic"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="*"
                        ControlToValidate="txtEmail" ClientIDMode="Static" Text="*" Display="Dynamic"
                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                </div>
            </div>
            <div class="clearfix">
                <label for="txtName">
                    Friend Name:</label>
                <div class="input">
                    <asp:TextBox runat="server" ID="txtFriendName" MaxLength="150" />
                    <asp:RequiredFieldValidator ClientIDMode="Static" ControlToValidate="txtFriendName"
                        ID="RequiredFieldValidator3" runat="server" ErrorMessage="*" Text="*" Display="Dynamic"></asp:RequiredFieldValidator>
                </div>
            </div>
            <div class="clearfix">
                <label for="txtEmail">
                    Friend Email</label>
                <div class="input">
                    <asp:TextBox runat="server" ID="txtFriendEmail" MaxLength="150" />
                    <asp:RequiredFieldValidator ClientIDMode="Static" ControlToValidate="txtFriendEmail"
                        ID="RequiredFieldValidator4" runat="server" ErrorMessage="*" Text="*" Display="Dynamic"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="*"
                        ControlToValidate="txtFriendEmail" ClientIDMode="Static" Text="*" Display="Dynamic"
                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                </div>
            </div>
            <div class="clearfix">
                <label for="disabledInput">
                    <asp:Literal runat="server" ID="DescriptionLabel" Text="Description:"></asp:Literal></label>
                <div class="input">
                    <asp:TextBox runat="server" ID="txtDescription" TextMode="MultiLine" MaxLength="500"
                        CssClass="span6" Height="120px" />
                </div>
            </div>
            <div class="actions" style="margin-top: 0; margin-bottom: 0">
                <asp:Button Text="Send" CssClass="btn primary" runat="server" ID="btnSend" OnClick="btnSend_Click" />
                <asp:Button Text="Cancel" runat="server" CssClass="btn" ID="btnCancel" OnClientClick="javascript:parent.hideReferToFriendModal();" />
            </div>
        </asp:Panel>
    </div>
    </form>
</body>
</html>
